﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class BrokerMap : ClassMap<Broker>
    {
        public BrokerMap()
        {
            Table("BROKER");
            Id(x => x.BrokerId, "BROKER_ID").GeneratedBy.Identity();
            Map(x => x.BrokerCode, "BROKER_CODE");
            Map(x => x.BrokerNameEn, "BROKER_NAME_EN");
            Map(x => x.BrokerNameTh, "BROKER_NAME_TH");
            Map(x => x.BrokerSymbol, "BROKER_SYMBOL");
            Map(x => x.BrokerStatus, "BROKER_STATUS");
        }
    }
}
